package com.green.aop.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
//@Component
public class PermissionAdvice {


    @Before(
            "execution(* com.green.aop.service.IUserService.addUser(..))" +
                    " || execution(* com.green.aop.service.IUserService.updateUser(..))" +
                    " || execution(* com.green.aop.service.IUserService.deleteUser())"
    )
    public void checkPer() {
        System.out.println("权限验证");
    }
}
